package com.example.tilitili.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.tilitili.pojo.Goods;
import com.example.tilitili.pojo.SeckillGoods;
import com.example.tilitili.vo.GoodsVo;
import com.example.tilitili.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liu
 * @since 2022-01-17
 */
public interface IGoodsService extends IService<Goods> {
    /**
     * 获取商品列表
     * @return
     */
    List<GoodsVo> findGoodsVo();

    /**
     * 获取商品详情
     * @param goodsId
     * @return
     */
    GoodsVo  findGoodsVoByGoodsId(Long goodsId);

    /**
     * 获取上架商品详情
     * @param goodsId
     * @return
     */
    Goods  findGoodsVoByGoodsId2(Long goodsId);

    RespBean dogrounding(GoodsVo goodsVo, HttpServletRequest request, HttpServletResponse response);

    Goods grounding(GoodsVo goodsVo);

//    SeckillGoods grounding2(GoodsVo goodsVo);
}
